<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <p th:text="${hello}"></p>
</div>
<div>
    <button th:if="${flag}">button1</button>
    <button th:if="not ${flag}">button2</button>
</div>
<div>
    <table>
        <thead>
    <th>age</th>
    <th>id</th>
    <th>color</th>

    </thead>
        <tbody>
        <tr th:each="dog:${dogs}">
            <td th:text="${dog.age}"></td>
            <td th:text="${dog.id}"></td>
            <td th:text="${dog.colour}"></td>
        </tr>
        </tbody>
    </table>

</div>
</body>
</html>